﻿using HenuAlbum.Models;
using Microsoft.AspNetCore.Identity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace HenuAlbum.Identity
{
    public class User : IdentityUser<int>
    {
        public virtual ICollection<UserToken> UserTokens { get; set; }

        public virtual ICollection<UserRole> Roles { get; set; }

        public virtual ICollection<UserLogin> Logins { get; set; }

        public virtual ICollection<UserClaim> Claims { get; set; }

        public string FullName { get; set; }

        public int? ClassId { get; set; }

        public Class Class { get; set; }

        public List<PersonalAlbum> PersonalAlbums { get; set; } = new List<PersonalAlbum>();

        public List<Major> ManagedMajors { get; set; } = new List<Major>();

        public bool IsLocked { get; set; } = false;

        public List<UserLikeAlbum> LikeAlbums { get; set; } = new List<UserLikeAlbum>();
    }
}
